<div data-am-widget="tabs" data-am-tabs="{noSwipe: 1}" class="am-tabs am-tabs-d2">
      <ul class="am-tabs-nav am-cf">
          <li class="am-active"><a href="#">两面盘</a></li>
          <li class=""><a href="#">单号</a></li>
          <li class=""><a href="#">第一球</a></li>
          <li class=""><a href="#">第二球</a></li>
          <li class=""><a href="#">第三球</a></li>
          <li class=""><a href="#">第四球</a></li>
          <li class=""><a href="#">第五球</a></li>
          <li class=""><a href="#">第六球</a></li>
          <li class=""><a href="#">第七球</a></li>
          <li class=""><a href="#">第八球</a></li>
          <li class=""><a href="#">正码</a></li>
          <li class=""><a href="#">连码</a></li>
      </ul>
      <div class="am-tabs-bd">
        <div data-tab-panel-0 class="am-tab-panel am-active">
            <table class="zonghe container">
                <thead>
                    <tr>
                        <th colspan="3">总和</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
            
            <ul class="am-avg-sm-4 eight">
            </ul>
        </div>
        <div data-tab-panel-1 class="am-tab-panel ">
            <table class="danhao container">
                <thead>
                    <tr>
                        <th colspan="4">单号</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-2 class="am-tab-panel ">
            <table class="qiu1 container">
                <thead>
                    <tr>
                        <th colspan="4">第一球</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-3 class="am-tab-panel ">
            <table class="qiu2 container">
                <thead>
                    <tr>
                        <th colspan="4">第二球</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-4 class="am-tab-panel ">
            <table class="qiu3 container">
                <thead>
                    <tr>
                        <th colspan="4">第三球</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-5 class="am-tab-panel ">
            <table class="qiu4 container">
                <thead>
                    <tr>
                        <th colspan="4">第四球</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-6 class="am-tab-panel ">
            <table class="qiu5 container">
                <thead>
                    <tr>
                        <th colspan="4">第五球</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-7 class="am-tab-panel ">
            <table class="qiu6 container">
                <thead>
                    <tr>
                        <th colspan="4">第六球</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-8 class="am-tab-panel ">
            <table class="qiu7 container">
                <thead>
                    <tr>
                        <th colspan="4">第七球</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-9 class="am-tab-panel ">
            <table class="qiu8 container">
                <thead>
                    <tr>
                        <th colspan="4">第八球</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-10 class="am-tab-panel ">
            <table class="zhengma container">
                <thead>
                    <tr>
                        <th colspan="1">正码</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div data-tab-panel-11 class="am-tab-panel ">
            <table class="lianma container">
                <thead>
                    <tr colspan='3'>连码</tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
      </div>

      <button class="save am-btn-xl am-btn-primary">保存</button>
  </div>

<style type="text/css">
    .lottery-item .rate {
        width: 150px;
    }
</style>
  

<script>
    var types = ["大", "单", "尾大", "小", "双", "尾小"];
    var table = $(".zonghe tbody");
    table.empty();
    var tr = $("<tr></tr>");
    for (var i = 0; i < types.length; i++) {
        AdminLimit.add('和' + types[i], '总和' + types[i], tr);
        if (i == 2) {
            table.append(tr);
            tr = $("<tr></tr>");
        }
    }
    table.append(tr);

    var arr = ['一', '二', '三', '四', '五', '六', '七', '八'];
    var types = ['大', '小', '单', '双', '尾大', '尾小', '合单', '合双', '龙', '虎'];
    var arr2 = ['大', '小', '单', '双', '尾大', '尾小', '合数单', '合数双', '龙', '虎'];
    var div = $(".eight");
    div.empty();

    for (var i in arr) {
        var table = $('<table class="container"></table>');
        table.append('<tr><th>第' + arr[i] + '球</th></tr>');
        for (var j = 0; j < types.length; j++) {
            if (j > 7 && i > 3) {
                continue;
            }
            var tr = $("<tr></tr>");
            AdminLimit.add(arr[i] + types[j], arr2[j], tr);
            table.append(tr);
        }

        var li = $("<li></li>");
        li.append(table);
        div.append(li);
    }

    var table = $(".danhao tbody");
    table.empty();
    var arr = ['一', '二', '三', '四', '五', '六', '七', '八'];
    var tr = $("<tr></tr>");
    for (var i in arr) {
        AdminLimit.add(arr[i], '第' + arr[i] + '球单号', tr);
        if (i == 3) {
            table.append(tr);
            tr = $("<tr></tr>");
        }
    }
    table.append(tr);

    var types = ['大', '单', '尾大', '合单', '小', '双', '尾小', '合双', '东', '南', '西', '北', '中', '发', '白'];
    var tables = [];
    for (var i = 1; i <= 8; i++)
        tables.push($(".qiu" + i + " tbody"));
    for (var z in tables) {
        var table = tables[z];
        var tr = $("<tr></tr>");
        for (var i in types) {
            var n = types[i];
            if (n == '合单') n = '合数单';
            if (n == '合双') n = '合数双';
            AdminLimit.add(arr[z] + types[i], n, tr);
            if (i % 4 == 3) {
                table.append(tr);
                tr = $("<tr></tr>");
            }
        }
        tr.append("<td> </td>");
        table.append(tr);

        if (z > 3) continue;
        var tr = $("<tr></tr>");
        AdminLimit.add(arr[z] + '龙', '龙', tr);
        AdminLimit.add(arr[z] + '虎', '虎', tr);
        tr.append("<td> </td>"); tr.append("<td> </td>");
        table.append(tr);
    }

    var table = $(".zhengma tbody");
    table.empty();
    var tr = $("<tr></tr>");
    AdminLimit.add("正", '正码1-20', tr);
    table.append(tr);

    var types = ['任2', '组2', '任3', '组3', '任4', '任5'];
    var table = $(".lianma tbody");
    var tr = $("<tr></tr>");
    for (var i in types) {
        AdminLimit.add(types[i], Cqkl10Rule.getTargetName(types[i]), tr);
        if (i == 2) {
            table.append(tr);
            tr = $("<tr></tr>");
        }
    }
    table.append(tr);
</script>
